package com.twu.biblioteca;

import java.io.BufferedReader;
import java.io.InputStreamReader;

public class BibliotecaApp {

    public static String welcomeMessage(){
        return "Welcome to the Bangalore Public Library!";
    }


    public static void main(String[] args) {
        Library library = new Library();
        State state = new MenuState(library);
        System.out.println(BibliotecaApp.welcomeMessage());

        while (state.getClass() != ExitState.class) {
            System.out.println(state.getMessage());
            state = state.next(new BufferedReader(new InputStreamReader(System.in)));
        }

        System.out.println(state.getMessage());

    }
}
